package com.carkeeper.subject.pojo;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Table(name = "tb_store_user")
public class StoreUser implements Serializable {

    @Id
    private Long id;                //id
    private String username;        //用户名
    private String password;        //密码
    private String realname;        //姓名
    private String phone;           //手机
    private Long storeId;           //店铺
    private String isAdmin;         //是否是管理员
    private Long type;              //类型  1 服务商  2 配件商
    private String status;          //状态

    public StoreUser() {
    }

    public StoreUser(Long id, String username, String password, String realname, String phone, Long storeId, String isAdmin, Long type, String status) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.realname = realname;
        this.phone = phone;
        this.storeId = storeId;
        this.isAdmin = isAdmin;
        this.type = type;
        this.status = status;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Long getStoreId() {
        return storeId;
    }

    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    public String getIsAdmin() {
        return isAdmin;
    }

    public void setIsAdmin(String isAdmin) {
        this.isAdmin = isAdmin;
    }

    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
